﻿<!DOCTYPE html>
<html>

<head>
  <title>贪吃蛇游戏</title>
  <style>
    html,
    body {
      height: 100%;
      margin: 0;
    }

    body {
      background: black;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    canvas { 
      border: 1px solid white;
    }
    .date {
      height: 50px;
      width: 300px;
      font-size: 50px;
      color: blue;
    }
    button {
      margin-bottom: 10px;
      height: 30px;
      width: 40px;
      background-color: #55c4d0;
      border: none;
      box-shadow: 0 1px 5px #55c4d0;
      outline: none;
      cursor: pointer;
      color: #fff;
    }

    button:active {
      transform: scale(0.8);
    }
  </style>
</head>

<body>
  <div>
    <p class="date">Score: <span id="score">0</span></p>
    <p class="date">Time: <span id="time">0</span></p>
    
      <button id="button1">1</button>
      <button id="button2">2</button>
      <button id="button3">3</button>
    </div>
    <canvas width="700" height="700" id="game"></canvas>
  

  <script src="snake.js">
  </script>
</body>

</html>